package com.jade.store.wechat.service;

import com.jade.bss.base.customer.Customer;
import com.jade.bss.db.BaseFacade;
import com.jade.store.wechat.entity.WXPreAuthCode;

import javax.servlet.http.HttpServletRequest;

/**
 * Created with IntelliJ IDEA.
 * User: jinya
 * Date: 2016/12/13
 * Time: 14:47
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
public interface WechatAuthFacade extends BaseFacade {
    void AuthPush(HttpServletRequest request) throws  Exception;
    WXPreAuthCode get_pre_auth_code(HttpServletRequest request) throws  Exception;
    /**
     * 首次授权通过的时候 获得授权CODE和过期时间
     * @param request
     * @param auth_code
     * @param expires_in
     */
    void InitWechatApp(Customer customer, HttpServletRequest request, String auth_code, String expires_in) throws  Exception;
}
